package com.weitu.archives.personArchives.mapper;

import com.weitu.archives.personArchives.entity.SecurityOrganizationLedger;
import com.weitu.archives.personArchives.entity.SecurityOrganizationLedgerRealation;

import java.util.List;
import java.util.Map;

/**
 * Created by smp on 2017/5/15.
 */
public interface SecurityOrganizationLedgerMapper {
    /**
     * 查询总数量
     * @param map
     * @return
     */
    int queryCount(Map<String,Object> map);

    /**
     * 查询列表
     * @param map
     * @return
     */
    List<SecurityOrganizationLedger> queryList(Map<String,Object> map);

    /**
     * 插入组织
     * @param securityOrganizationLedger
     * @return
     */
    int insertSecurityOrganizationLedger(SecurityOrganizationLedger securityOrganizationLedger);

    /**
     * 根据ID查询组织
     * @param id
     * @return
     */
    SecurityOrganizationLedger querySecurityOrganizationLedger(String id);

    /**
     * 修改组织
     * @param securityOrganizationLedger
     * @return
     */
    int updateSecurityOrganizationLedger(SecurityOrganizationLedger securityOrganizationLedger);

    /**
     * 删除组织
     * @param id
     * @return
     */
    int deleteSecurityOrganizationLedger(String id);

    /**
     * 插入HSE信息记录
     * @param securityOrganizationLedgerRealationList
     * @return
     */
    int insertSecurityOrganizationLedgerRealaction(List<SecurityOrganizationLedgerRealation> securityOrganizationLedgerRealationList);

    /**
     * 根据ID获取关系
     * @param id
     * @return
     */
    List<SecurityOrganizationLedgerRealation> queryListRelationById(String id);

    /**
     * 删除关联
     * @param id
     * @return
     */
    int deleteSecurityOrganizationLedgerRealation(String id);

    /**
     * 根据ID查数据
     * @param id
     * @return
     */
    SecurityOrganizationLedgerRealation selectRelationById(String id);

    /**
     * 根据ID修改
     * @return
     */
    int updateRelation(SecurityOrganizationLedgerRealation realation);

    /**
     * 插入联系
     * @param realation
     * @return
     */

    int insertRelation(SecurityOrganizationLedgerRealation realation);
}
